const { Pool, Client } = require('pg');

var TEST_DATABASE = 'bee_test';
var TEST_TABLE = 'node_user';

// const pool = new Pool({
// 	host: '127.0.0.1',
// 	port: 5432,
// 	user: 'postgres',
// 	password: 'postgres',
// 	database: TEST_DATABASE,
// });
const pool = new Pool({
	host: '123.207.1.188',
	port: 5432,
	user: 'postgres',
	password: 'postgres',
	database: TEST_DATABASE,
});

pool.query('select * from node_user', (err, res) => {
	console.log(err, res.rows);
	res.send({"list": res.rows});
});

pool.end();
